home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 3501 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: news.uit.no!news
  2. From: troels@stud.cs.uit.no (Troels Walsted Hansen)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: AREXX beginner needs help...
  5. Date: 20 Feb 96 22:09:13 +0100
  6. Organization: University of Tromsoe, Norway
  7. Message-ID: <1491.6624T1329T673@stud.cs.uit.no>
  8. References: <Dn16L1.9ID@emr1.emr.ca>
  9. NNTP-Posting-Host: uit-or4.uit.no
  10. X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
  11.  
  12. In article <Dn16L1.9ID@emr1.emr.ca>, kpratt@emr1.emr.ca (Ken Pratt) wrote:
  13.  
  14. >Hi,  I thought I might try to learn a little about AREXX.  I've had
  15. >an Amiga for a little over a year now, and I figure it's time.
  16.  
  17. >Anyway, one of the first things I tried was to write a little file
  18. >to the RAM: drive.  A DO loop counts to 100 and writes the current
  19. >value.  Seems to work.  However, trying to read values back in is a 
  20. >different story.  I tried using a DO loop again, counting to 100, and
  21. >then using val = READLN ('RAM:test').  Following that I put a SAY val in, 
  22. >but when I run the program my only output is a series of READLN
  23. >('RAM:test')'s on the screen.  Code looks like this:
  24.  
  25. >OPEN myfile,'RAM:test,'R'
  26. >DO 1 to 100
  27. >    val=READLN('RAM:test')  /*Doesn't matter what's in the brackets*/
  28. >                            /* end result is that it just gets echo'd*/
  29. >                             /*on the screen*/
  30. >    SAY val
  31. >     END
  32.  
  33.  
  34. myfile is your filehandle, you should readln(myfile). (And when you're done
  35. with the file, close(myfile) it.)
  36.  
  37. >When run, READLN('RAM:test') is written out over and over.
  38. >Can you help?  From what I get out of the manual, it should work.
  39.  
  40. >Also, is there a source of beginner level info, other than the manual for 
  41. >AREXX? There wouldn't be a FAQ about AREXX would there?
  42.  
  43. Try searching on aminet, there is some stuff there..
  44.  
  45.                    T r o e l s  W a l s t e d  H a n s e n
  46.             troels@stud.cs.uit.no - http://www.cs.uit.no/~troels
  47.  
  48.